#! /usr/bin/env python
# -*- coding: utf-8 -*-

import Operation
import logging


class OperationDiv(Operation.Operation):

    def get_result(self):
        try:
            result = float(self.op1) / self.op2
            return result
        except Exception as e:
            logging.error(e)
            return 0
